<?php

namespace State\Concrete;

include_once "StateAbstract.php";
include_once "StateInterface.php";
include_once "StateB.php";

use State\Context;
use State\StateAbstract;
use State\StateInterface;
/** 状态模式实体类A */
class StateA extends StateAbstract implements StateInterface
{
    public function Handle(Context $context)
    {
        /** 修改状态 */
        parent::updateState($context, new StateB());
    }
}